<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var myButton = document.getElementById("myButton");
			myButton.onclick = function() {
				alert('thanks');
			}
		</script>
	</head>
	<body>
		<input id="myButton" type="button" value="Press Me" onclick="alert('thanks')">
	</body>
</html>
